/*******************************************************************************
WHAT THIS DO FILE DOES

	This is the main standalone .do file for the replication package that is
	done in Stata.
	
	All do files are executed from this file, MAIN.do
	
	Users should customize the do file MyPaths_[CUSTOM].do
	
	All other files run in Stata are executed from MAIN.do and do not need 
	to be changed to replicate the results in the paper.
	
*******************************************************************************/

//
version 16

//THIS PATH AND DO FILE MUST BE CUSTOMIZED
	global mypaths "C:\Users\wb371044\OneDrive - WBG\Political Connections\Replication Package\Stata_do files\_MyPaths_[CUSTOM].do"		//Users must customize the contents of the file _MyPaths_[CUSTOM].do
	
********************************************************************************
				   *** DO NOT CHANGE THE CODE BELOW ***
********************************************************************************	
	
//See if the required directories and programs are present 
	run "${mypaths}"
	
********************************************************************************
*Analysis in the manuscript
********************************************************************************

*Figure 1
run "${dofiles}\\Figure1_Item Discrimination Parameters.do"

*Figure 2
run "${dofiles}\\Figure2_Distribution of Predicted Firm-level Political Influence by Size.do"

*Figure 3 
run "${dofiles}\\Figure3_Distribution of Political Influence Index.do"

*Table 3 
run "${dofiles}\\Table3_Summary Statistics across All Firms.do"

*Figure 4
run "${dofiles}\\Figure4_Distributions of Political Influence Scores by Country.do" 

*Table 4
run "${dofiles}\\Table4_Mean Summary Statistics Across All countries.do"

*Figure 5
run "${dofiles}\\Figure5_olitical Influence Distributions at High and Low Levels of Voice and Accountability.do"

*Figure 6
run "${dofiles}\\Figure6_BetaOLS and BetaRIF at Quantiles of the Political Influence Score.do"

*Table 5
run "${dofiles}\\Table5_RIF-OLS, Political Influence Relative to the Country Median.do"